package com.btkjgc.models;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * CarT entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "car_t")
@DynamicUpdate(true)
@DynamicInsert(true)
public class CarT extends Base implements java.io.Serializable {

	// Fields

	private Integer id;
	private String carplate;
	private String framenumber;
	private Integer cartypeid;
	private Integer business_type;
	private Integer color;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date createdate;
	private Integer del;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date platedate;
	private Integer companyid;
	private Integer islast;
	private Integer isfirst;
	private Integer init_miles;
	private Integer free;
	private Integer firstfee;
	private Integer lastfee;

	@Id  
	@Column(name="id",unique=true)  
    @GeneratedValue(strategy=GenerationType.AUTO) 
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCarplate() {
		return carplate;
	}

	public void setCarplate(String carplate) {
		this.carplate = carplate;
	}

	public String getFramenumber() {
		return framenumber;
	}

	public void setFramenumber(String framenumber) {
		this.framenumber = framenumber;
	}

	public Integer getCartypeid() {
		return cartypeid;
	}

	public void setCartypeid(Integer cartypeid) {
		this.cartypeid = cartypeid;
	}

	public Integer getBusiness_type() {
		return business_type;
	}

	public void setBusiness_type(Integer business_type) {
		this.business_type = business_type;
	}

	public Integer getColor() {
		return color;
	}

	public void setColor(Integer color) {
		this.color = color;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	public Date getPlatedate() {
		return platedate;
	}

	public void setPlatedate(Date platedate) {
		this.platedate = platedate;
	}

	public Integer getCompanyid() {
		return companyid;
	}

	public void setCompanyid(Integer companyid) {
		this.companyid = companyid;
	}

	public Integer getIslast() {
		return islast;
	}

	public void setIslast(Integer islast) {
		this.islast = islast;
	}

	public Integer getIsfirst() {
		return isfirst;
	}

	public void setIsfirst(Integer isfirst) {
		this.isfirst = isfirst;
	}

	public Integer getInit_miles() {
		return init_miles;
	}

	public void setInit_miles(Integer init_miles) {
		this.init_miles = init_miles;
	}

	public Integer getFree() {
		return free;
	}

	public void setFree(Integer free) {
		this.free = free;
	}

	public Integer getFirstfee() {
		return firstfee;
	}

	public void setFirstfee(Integer firstfee) {
		this.firstfee = firstfee;
	}

	public Integer getLastfee() {
		return lastfee;
	}

	public void setLastfee(Integer lastfee) {
		this.lastfee = lastfee;
	}

	// Property accessors

}